<!doctype html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>jQuery鼠标跟随星星特效插件</title>
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/styles/foundation.min.css">
	<link rel="stylesheet" type="text/css" href="http://www.jq22.com/jquery/bootstrap-3.3.4.css">
	<link rel="stylesheet" type="text/css" href="http://www.jq22.com/jquery/font-awesome.4.6.0.css">
	<link media="all" rel="stylesheet" href="css/all.css">
</head>
<body>
		<section id="examples" class="example-box blue">
	<div class="container">
		<div class="row">
			<div class="col-md-6 col-sm-12 visible-md-block visible-lg-block">
				<pre><code class="javascript">
jQuery('#example-1').jstars({
	image_path: 'images'  
});
				</code></pre>
			</div>
			<div class="col-md-6 col-sm-12">
				<h2>Example 1: White</h2>
				<p>This example illustrates "white" style. As you can see we do not specify any parameters, so style and frequency are set to "white" and "12" automatically.</p>
			</div>
			<div class="col-md-6 col-sm-12 visible-xs-block visible-sm-block">
				<pre><code class="javascript">
jQuery('#example-1').jstars({
	image_path: 'images'  
});
				</code></pre>
			</div>
		</div>
	</div>
</section>

<section id="example-blue" class="example-box white">
	<div class="container">
		<div class="row">
			<div class="col-md-6 col-sm-12">
				<h2 style="color: #fff;">Example 2: Blue</h2>
				<p style="color: #fff;">This one illustrates "blue" style.</p>
				<p style="color: #fff;">Also we increased frequency a bit.</p>
			</div>
			<div class="col-md-6 col-sm-12">
				<pre><code class="javascript">
jQuery('#example-blue').jstars({
	image_path: 'images',
	style: 'blue',
	frequency: 15
});
				</code></pre>
			</div>
		</div>
	</div>
</section>
	
<section id="example-yellow" class="example-box green">
	<div class="container">
		<div class="row">
			<div class="col-md-6 col-sm-12 visible-md-block visible-lg-block">
				<pre><code>
jQuery('#example-yellow').jstars({
	image_path: 'images',
	style: 'yellow',
	frequency: 20
});
				</code></pre>
			</div>
			<div class="col-md-6 col-sm-12">
				<h2>Example 3: Yellow</h2>
				<p>This example illustrates "yellow" style.</p>
				<p>And the frequency is set to max value.</p>
			</div>
			<div class="col-md-6 col-sm-12 visible-xs-block visible-sm-block">
<pre><code>
jQuery('#example-yellow').jstars({
	image_path: 'images',
	style: 'yellow',
	frequency: 20
});
				</code></pre>
			</div>
		</div>
	</div>
</section>	
	
<section id="example-red" class="example-box white">
	<div class="container">
		<div class="row">
			<div class="col-md-6 col-sm-12">
				<h2 style="color: #fff;">Example 4: Red</h2>
				<p style="color: #fff;">This example illustrates "red" style.</p>
				<p style="color: #fff;">The frequency is low here, so the stars shine rarely.</p>
			</div>
			<div class="col-md-6 col-sm-12">
				<pre><code class="javascript">
jQuery('#example-red').jstars({
	image_path: 'images',
	style: 'red',
	frequency: 5
});
				</code></pre>
			</div>
		</div>
	</div>
</section>

<section id="example-green" class="example-box blue">
	<div class="container">
		<div class="row">
			<div class="col-md-6 col-sm-12 visible-md-block visible-lg-block">
				<pre><code class="javascript">
jQuery('#example-green').jstars({
	image_path: 'images',
	style: 'green'
});
				</code></pre>
			</div>
			<div class="col-md-6 col-sm-12">
				<h2>Example 5: Green</h2>
				<p>This example illustrates "green" style.</p>
			</div>
			<div class="col-md-6 col-sm-12 visible-xs-block visible-sm-block">
				<pre><code class="javascript">
jQuery('#example-green').jstars({
	image_path: 'images',
	style: 'green'
});
				</code></pre>
			</div>
		</div>
	</div>
</section>
	
<section id="example-rand" class="example-box green">
	<div class="container">
		<div class="row">
			<div class="col-md-6 col-sm-12">
				<h2>Example 6: Red</h2>
				<p>Our plugin has tricky mode - to show all stars colors randomly.</p>
				<p>You should use style "rand" for this feature.</p>
			</div>
			<div class="col-md-6 col-sm-12">
				<pre><code class="javascript">
jQuery('#example-rand').jstars({
	image_path: 'images',
	style: 'rand'
});
				</code></pre>
			</div>
		</div>
	</div>
</section>
	
<section id="custom" class="example-box blue">
	<div class="container">
		<div class="row">
			<div class="col-md-6 col-sm-12">
				<h2>Customize the image</h2>
				<p>You can try to prepare your own asset to display different image instead of stars.</p>
				<p>To do that you should make a sprite of 9 images, each next part is differ from previous with 40 degrees angle.</p>
				<p>Let's try how candy cane looks... It will be good for Xmas eve :)</p>
			</div>
			<div class="col-md-6 col-sm-12">
				<pre><code class="javascript">
jQuery('#example-rand').jstars({
	image_path: 'images',
	image: 'candy-cane-stars.png',
	style: 'white',
	width: 34,
	height: 34,
	delay: 700,
	frequency: 5
});
				</code></pre>
			</div>
		</div>
	</div>
</section>

	
	<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
	<script src="http://www.jq22.com/jquery/bootstrap-3.3.4.js"></script>
	<script src="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/highlight.min.js"></script>
	<script type="text/javascript" src="js/jquery-stars.js"></script>
	<script type="text/javascript" src="js/smothscrool.js"></script>
	<script type="text/javascript" src="js/jquery.main.js"></script>
</body>
</html>